home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1998 September
/
EnigmA AMIGA RUN 30 (1998)(G.R. Edizioni)(IT)[!][issue 1998-09].iso
/
recent
/
gms_so1.lha
/
COMPILE_SOUND.TXT
next >
Wrap
Text File
|
1998-07-19
|
1KB
|
31 lines
This source code requires the Version 1.2 developer archive on Aminet
(dev/misc/gms_dev.lha). Compilation of this module means that you have
read and agreed to the text in the DISTRIBUTION.TXT file.
NOTE: There is a bug in SAS/C which occurs when using registers a0 and a1
together in a function. This only happens when both registers are using a
pointer type, such as BYTE *, APTR or struct Object *. So if you see such
definitions being replaced with LONGs and then being converted inside the
function, it is done specifically to prevent this bug.
To compile every part of the sound module with SAS/C:
1> sc sound.c <Compile>
1> sc snd_data.c <Compile data area>
1> link.scr <Link it>
To compile with DiceC:
1> dcc -c -l0 -mD -mi snd_data.c -o snd_data.o
1> dcc -c -l0 -mD -mi sound.c -o sound.o
1> dlink snd_data.o sound.o tags.o cs.lib -o GMS:System/sound.mod
To compile everything at once using dice, just execute the compile.dcc
script. The compile.sas script does the same for SAS/C.
If the dpkernel.library is resident after compilation (eg. you have run
some demos beforehand) then you will need to do a "flush dpkernel.library"
so that the module will be reloaded the next time you run something.